<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>06_ES10-trimStart-trimEnd</title>
</head>
<body>
  
  <script>
    // trimStart() 去除字符串左侧空白
    // trimEnd() 去除字符串右侧空白

    let str = '   hello world   '
    console.log(str.trimStart())
    console.log(str.trimEnd())
    console.log(str.trim())
    
  </script>

</body>
</html>